// AWTAdjustmentEvent.h: interface for the AWTAdjustmentEvent class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTADJUSTMENTEVENT_H__E733F434_A3C6_11D2_A451_006097A44215__INCLUDED_)
#define AFX_AWTADJUSTMENTEVENT_H__E733F434_A3C6_11D2_A451_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "AWTEvent.h"

#define ADJUSTMENT_FIRST 601

interface AWTAdjustable;

class AFX_EXT_CLASS AWTAdjustmentEvent : public AWTEvent  
{
public:
	AWTAdjustmentEvent(AWTObject* source, int id, int type, int value);
	virtual ~AWTAdjustmentEvent();

	enum {ADJUSTMENT_VALUE_CHANGED = ADJUSTMENT_FIRST};

	enum {
		UNIT_INCREMENT = 1,
		UNIT_DECREMENT,
		BLOCK_DECREMENT,
		BLOCK_INCREMENT,
		TRACK,
		ENDTRACK};	

  AWTAdjustable* getAdjustable() 
		{return m_adjustable;}
  int getValue() 
		{return m_value;}
  int getAdjustmentType() 
		{return m_adjustmentType;}

protected:
  AWTAdjustable* m_adjustable;
  int m_value;
  int m_adjustmentType;
};

#endif // !defined(AFX_AWTADJUSTMENTEVENT_H__E733F434_A3C6_11D2_A451_006097A44215__INCLUDED_)
